package cn.wynu;

import cn.wynu.config.AppConfig;
import cn.wynu.service.BookService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class BookServiceTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext(AppConfig.class);
        BookService bookService = context.getBean(BookService.class);

        bookService.addBook("Java编程思想", 3);
        bookService.deleteBook("Java编程思想");
        bookService.updateBook("Java编程思想");
    }
}
